import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import { HashRouter } from 'react-keeper'

import PageHome from '../pages/home/';
import PageXQ from '../pages/myxq/';
import PageAbout from '../pages/about';

import { isDev } from './variables';
import './app.less';
import './wx';

window.addEventListener('load', () => {
  FastClick.attach(document.body);
});

if (window.chrome && window.chrome.webstore) {
  setInterval(() => {
    document.body.focus();
  }, 200);
}

class App extends Component {
  render() {
    return (
      <HashRouter>
        <div>
          <PageHome.route/>
          <PageXQ.route/>
          <PageAbout.route/>
        </div>
      </HashRouter>
    )
  }
}

ReactDOM.render(<App/>, document.getElementById('App'))
